package no.uib.hplims.tools.events;

import java.util.EventObject;

import no.uib.hplims.models.Peptide;

public class PeptideCreatedEvent extends EventObject {

	private static final long serialVersionUID = 7953083025961736220L;
	
	private Peptide peptide = null;
	
	private int total = -1;
	private int remaining = -1;

	public PeptideCreatedEvent(Object source, Peptide p, int total, int remaining) {
		super(source);
		
		this.peptide = p;
		this.total = total;
		this.remaining = remaining;
	}

	public Peptide getPeptide() {
		return peptide;
	}

	public void setPeptide(Peptide peptide) {
		this.peptide = peptide;
	}

	public int getTotal() {
		return total;
	}

	public void setTotal(int total) {
		this.total = total;
	}

	public int getRemaining() {
		return remaining;
	}

	public void setRemaining(int remaining) {
		this.remaining = remaining;
	}

}
